using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DD.Data.SQL;

public partial class Admin_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Control c = LoadControl(@"Controls\AdminMenu.ascx");
        placeholder1.Controls.Add(c);

        
        string controlname = "default.ascx";
        if(Request["id"] != null)
        {
            int ControlId = Convert.ToInt32(Request["id"]);
            controlname = AdminMenuController.GetControlName(ControlId);
        }
        
        
        Control c1 = LoadControl(@"Controls\" + controlname);
        ContentPlaceholder1.Controls.Add(c1);



        
    }
}
